package com.gxa.jjty.core.exception;


import com.gxa.jjty.core.common.ExceptionCode;

/**
 * @author 宸濯
 */
public class BusinessException extends Exception {

    private ExceptionCode exceptionCode=null;

    public ExceptionCode getExceptionCode() {
        return exceptionCode;
    }

    public BusinessException(ExceptionCode exceptionEnum){
        super(exceptionEnum.getMsg());
        this.exceptionCode = exceptionEnum;
    }
}
